<include file="public/header"/>
<link rel="stylesheet" href="__ADMIN__/css/global.css">
</head>
<body style="background: #fff;">
<div class="admin-main">
	<blockquote class="layui-elem-quote">
		<form class="layui-form  J_ajaxForm"  action="{:url('Log/message')}" method="get">
			
			<div class="layui-inline  ml10">
				<div class="layui-input-inline layui-wd0" >
				  <input type="text" name="content" value="{$formget.content}" placeholder="通知描述关键字搜索" class="layui-input">
				</div>
			</div>
			<div class="layui-inline " >
				<button class="layui-btn layui-btn-normal">
					<i class="layui-icon">&#xe615;</i>&nbsp;&nbsp;点击搜索
				</button>
			</div>
			<div class="layui-inline fr ml20" >
				<button class="layui-btn layui-btn-normal" id="refresh_wrapper">
					<i class="layui-icon">&#x1002;</i>
				</button>
			</div>
			<div class="layui-inline fr">
		    	<a onclick="iframe('{:url('Log/addedit')}','发布系统消息','600px','400px')"   class="layui-btn layui-btn-danger">
					<i class="layui-icon">&#xe608;</i>&nbsp;&nbsp;添加通知消息
				</a>
			</div>
		</form>
	</blockquote>
	
	<div class="layui-field-box">
	  <form class="layui-form">
		<table class="site-table table-hover">
			<thead>
				<tr>
					<th >发布人</th>
					<th>操作描述</th>
					<th>操作时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			<foreach name="msg" item="vo">
				<tr>
					<td >{$vo.nicename}</td>
					<td style="width:65%">{$vo.content}</td>
					<td>{:date('Y年m月d日',$vo['add_time'])}<br>{:date('H:i:s',$vo['add_time'])}</td>
					<td>
							<a onclick="iframe('{:url('Log/addedit',['id'=>$vo.id])}','编辑通知信息','600px','400px')"  class="layui-btn layui-btn-danger layui-btn-xs">编辑通知</a>
							<a data-url="{:url('log/delete',['id'=>$vo.id])}" class="layui-btn layui-btn-normal layui-btn-xs J_list_delete">删除</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
	  </form>
	</div>
 	<if condition="$allpage gt 1">
		<div class="admin-table-page">
			<div id="mylaypage" ></div>
		</div>
	 </if> 
</div>
<script>
  myjumppage = "{:url('Log/message',['page'=>'pageval','limits'=>'limitval','content'=>$formget.content])}";
</script>
<include file="public/footer" />
</body>
</html>